import request from '@/utils/request'

// 获取缺陷记录
export function getIpqcInspectionitemdefectInfo(id) {
    return request({
        url: `/api/Business/IpqcInspectionitemdefect/${id}`,
        method: 'GET'
    })
}

// 获取缺陷记录列表
export function getIpqcInspectionitemdefectList(data) {
    return request({
        url: `/api/Business/IpqcInspectionitemdefect`,
        method: 'GET',
        data
    })
}

// 保存缺陷记录
export function createIpqcInspectionitemdefect(data) {
    return request({
        url: '/api/Business/IpqcInspectionitemdefect',
        method: 'POST',
        data
    })
}

// 删除缺陷记录
export function delIpqcInspectionitemdefect(id) {
    return request({
        url: `/api/Business/IpqcInspectionitemdefect/${id}`,
        method: 'DELETE'
    })
}